﻿namespace D.Domain.SystemDomain.SysOrgDomain.Repositories
{
    /// <summary>
    /// 组织部门仓储接口
    /// </summary>
    public interface ISysOrgRepository
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="sysOrgEntity"></param>
        /// <returns></returns>
        Task AddAsync(SysOrgEntity sysOrgEntity);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="guids"></param>
        /// <returns></returns>
        Task DeleteAsync(List<Guid> guids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="sysOrgEntity"></param>
        /// <returns></returns>
        Task UpdateAsync(SysOrgEntity sysOrgEntity);

        ///// <summary>
        ///// 分页查询
        ///// </summary>
        ///// <param name="pageQuery"></param>
        ///// <returns></returns>
        //Task<PageModel<SysOrgEntity>> QueryPageAsync(PageQueryDto pageQuery);

        ///// <summary>
        ///// 获取列表
        ///// </summary>
        ///// <returns></returns>
        //Task<List<SysOrgEntity>> QueryListAsync();

        /// <summary>
        /// 获取单个
        /// </summary>
        /// <param name="guid"></param>
        /// <returns></returns>
        Task<SysOrgEntity> GetByIdAsync(Guid guid);
    }
}
